package org.mat.ipaas.ucenter.service.dto.message.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * 消息模板
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysMessageTemplateDTO implements Serializable {

    /**
     * ID
     */
    @ApiModelProperty(value = "ID")
    private String id;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @Excel(name = "创建人", width = 15)
    private String createBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    @Excel(name = "更新人", width = 15)
    private String updateBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date updateTime;

    /**
     * 模板CODE
     */
    @Excel(name = "模板CODE", width = 15)
    private String templateCode;
    /**
     * 模板标题
     */
    @Excel(name = "模板标题", width = 30)
    private String templateName;
    /**
     * 模板内容
     */
    @Excel(name = "模板内容", width = 50)
    private String templateContent;
    /**
     * 模板测试json
     */
    @Excel(name = "模板测试json", width = 15)
    private String templateTestJson;
    /**
     * 模板类型
     */
    @Excel(name = "模板类型", width = 15)
    private String templateType;

    /**
     * 已经应用/未应用  1是0否
     */
    @Excel(name = "应用状态", width = 15)
    private String useStatus;

}
